﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplication2.ViewModels;
using ViewModel;


namespace MvcApplication2.Areas.SPA.Controllers
{
    public class MainController : Controller
    {
        //
        // GET: /SPA/Main/

        public ActionResult Index()
        {
            MainViewModel v = new MainViewModel(); 
            v.UserName = User.Identity.Name;
            v.Footerdata = new FooterViewModel();
            v.Footerdata.CompanyName = "StepByStepSchools";//Can be set to dynamic value
            v.Footerdata.Year = DateTime.Now.Year.ToString();
         return View("Index", v);
         
        }

    }
}
